<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<script type="text/javascript">
    $(function() {
        $('#trafficMotorAddForm').form({
            url : '${path}/trafficMotor/add',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    //之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
                    parent.$.modalDialog.openner_dataGrid.datagrid('reload');
                    parent.$.modalDialog.handler.dialog('close');
                } else {
                    parent.$.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow: hidden;padding: 3px;" >
        <form id="trafficMotorAddForm" method="post">
            <table class="grid">
                <tr>
                    <td>机动车所有人姓名</td>
                    <td><input name="motorUsername" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>机动车所有人手机号</td>
                    <td><input name="motorMobile" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>机动车所有人身份证号</td>
                    <td><input name="motorCardid" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>车牌号码</td>
                    <td><input name="motorPlateNumber" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>机动车后六位</td>
                    <td><input name="motorEngine" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>号牌类型</td>
                    <td>
                        <select id="motorType" name="motorType"
                                class="easyui-combobox"  data-options="width:140,height:29,editable:false,panelHeight:'auto'">
                            <option value="">请选择</option>
                            <option value="01">大型汽车</option>
                            <option value="02">小型汽车</option>
                            <option value="03">使馆汽车</option>
                            <option value="04">领馆汽车</option>
                            <option value="05">境外汽车</option>
                            <option value="06">外籍汽车</option>
                            <option value="07">普通摩托车</option>
                            <option value="08">轻便摩托车</option>
                            <option value="09">使馆摩托车</option>
                            <option value="10">领馆摩托车</option>
                            <option value="11">境外摩托车</option>
                            <option value="12">外籍摩托车</option>
                            <option value="13">低速车</option>
                            <option value="14">拖拉机</option>
                            <option value="15">挂车</option>
                            <option value="16">教练汽车</option>
                            <option value="17">教练摩托车</option>
                            <option value="18">试验汽车</option>
                            <option value="19">试验摩托车</option>
                            <option value="20">临时入境汽车</option>
                            <option value="21">临时入境摩托车</option>
                            <option value="22">临时行驶车</option>
                            <option value="23">警用汽车</option>
                            <option value="24">警用摩托</option>
                            <option value="25">原农机号牌</option>
                            <option value="26">香港入出境车</option>
                            <option value="27">澳门入出境车</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>车身颜色</td>
                    <td><input name="motorColor" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>机动车型号</td>
                    <td><input name="motorModel" type="text" placeholder="请输入名称" class="easyui-validatebox span2" data-options="required:true" value=""></td>
                </tr>
                <tr>
                    <td>是否报废</td>
                    <td>
                        <select id="isScrap" name="isScrap" class="easyui-combobox" data-options="width:140,height:29,editable:false,panelHeight:'auto'">
                            <option value="Y">是</option>
                            <option value="N">否</option>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</div>